﻿namespace WMS6.Web.OutboundServiceRef
{
    using System;
    using System.CodeDom.Compiler;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Diagnostics;
    using System.Runtime.CompilerServices;
    using System.Runtime.Serialization;

    [Serializable, DebuggerStepThrough, DataContract(Name="WaveInfo", Namespace="http://schemas.datacontract.org/2004/07/WMS6.DataEntity"), GeneratedCode("System.Runtime.Serialization", "3.0.0.0")]
    public class WaveInfo : IExtensibleDataObject, INotifyPropertyChanged
    {
        [OptionalField]
        private string AllowConsolidationField;
        [OptionalField]
        private string AutoBatchField;
        [OptionalField]
        private string BatchFlagField;
        [OptionalField]
        private string CasePickDispatchMethodField;
        [OptionalField]
        private string CreatedByField;
        [OptionalField]
        private DateTime CreatedDateField;
        [OptionalField]
        private string DescrField;
        [NonSerialized]
        private ExtensionDataObject extensionDataField;
        [OptionalField]
        private string ExternalWaveIDField;
        [OptionalField]
        private int LabelsPerCaseField;
        [OptionalField]
        private int LabelsPerPalletField;
        [OptionalField]
        private List<WMS6.Web.OutboundServiceRef.OrdersInfo> OrdersInfoField;
        [OptionalField]
        private string PalletPickDispatchMethodField;
        [OptionalField]
        private string PiecePickDispatchMethodField;
        [OptionalField]
        private int RowIDField;
        [OptionalField]
        private string StatusDField;
        [OptionalField]
        private string StatusField;
        [OptionalField]
        private byte[] TsField;
        [OptionalField]
        private string UpdatedByField;
        [OptionalField]
        private DateTime UpdatedDateField;
        [OptionalField]
        private List<WMS6.Web.OutboundServiceRef.WaveDetailInfo> WaveDetailInfoField;
        [OptionalField]
        private string WaveIDField;
        [OptionalField]
        private string WaveTypeField;
        [OptionalField]
        private string WhIDField;

        public event PropertyChangedEventHandler PropertyChanged;

        protected void RaisePropertyChanged(string propertyName)
        {
            PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
            if (propertyChanged != null)
            {
                propertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }

        [DataMember]
        public string AllowConsolidation
        {
            get
            {
                return this.AllowConsolidationField;
            }
            set
            {
                if (!object.ReferenceEquals(this.AllowConsolidationField, value))
                {
                    this.AllowConsolidationField = value;
                    this.RaisePropertyChanged("AllowConsolidation");
                }
            }
        }

        [DataMember]
        public string AutoBatch
        {
            get
            {
                return this.AutoBatchField;
            }
            set
            {
                if (!object.ReferenceEquals(this.AutoBatchField, value))
                {
                    this.AutoBatchField = value;
                    this.RaisePropertyChanged("AutoBatch");
                }
            }
        }

        [DataMember]
        public string BatchFlag
        {
            get
            {
                return this.BatchFlagField;
            }
            set
            {
                if (!object.ReferenceEquals(this.BatchFlagField, value))
                {
                    this.BatchFlagField = value;
                    this.RaisePropertyChanged("BatchFlag");
                }
            }
        }

        [DataMember]
        public string CasePickDispatchMethod
        {
            get
            {
                return this.CasePickDispatchMethodField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CasePickDispatchMethodField, value))
                {
                    this.CasePickDispatchMethodField = value;
                    this.RaisePropertyChanged("CasePickDispatchMethod");
                }
            }
        }

        [DataMember]
        public string CreatedBy
        {
            get
            {
                return this.CreatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CreatedByField, value))
                {
                    this.CreatedByField = value;
                    this.RaisePropertyChanged("CreatedBy");
                }
            }
        }

        [DataMember]
        public DateTime CreatedDate
        {
            get
            {
                return this.CreatedDateField;
            }
            set
            {
                if (!this.CreatedDateField.Equals(value))
                {
                    this.CreatedDateField = value;
                    this.RaisePropertyChanged("CreatedDate");
                }
            }
        }

        [DataMember]
        public string Descr
        {
            get
            {
                return this.DescrField;
            }
            set
            {
                if (!object.ReferenceEquals(this.DescrField, value))
                {
                    this.DescrField = value;
                    this.RaisePropertyChanged("Descr");
                }
            }
        }

        [Browsable(false)]
        public ExtensionDataObject ExtensionData
        {
            get
            {
                return this.extensionDataField;
            }
            set
            {
                this.extensionDataField = value;
            }
        }

        [DataMember]
        public string ExternalWaveID
        {
            get
            {
                return this.ExternalWaveIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ExternalWaveIDField, value))
                {
                    this.ExternalWaveIDField = value;
                    this.RaisePropertyChanged("ExternalWaveID");
                }
            }
        }

        [DataMember]
        public int LabelsPerCase
        {
            get
            {
                return this.LabelsPerCaseField;
            }
            set
            {
                if (!this.LabelsPerCaseField.Equals(value))
                {
                    this.LabelsPerCaseField = value;
                    this.RaisePropertyChanged("LabelsPerCase");
                }
            }
        }

        [DataMember]
        public int LabelsPerPallet
        {
            get
            {
                return this.LabelsPerPalletField;
            }
            set
            {
                if (!this.LabelsPerPalletField.Equals(value))
                {
                    this.LabelsPerPalletField = value;
                    this.RaisePropertyChanged("LabelsPerPallet");
                }
            }
        }

        [DataMember]
        public List<WMS6.Web.OutboundServiceRef.OrdersInfo> OrdersInfo
        {
            get
            {
                return this.OrdersInfoField;
            }
            set
            {
                if (!object.ReferenceEquals(this.OrdersInfoField, value))
                {
                    this.OrdersInfoField = value;
                    this.RaisePropertyChanged("OrdersInfo");
                }
            }
        }

        [DataMember]
        public string PalletPickDispatchMethod
        {
            get
            {
                return this.PalletPickDispatchMethodField;
            }
            set
            {
                if (!object.ReferenceEquals(this.PalletPickDispatchMethodField, value))
                {
                    this.PalletPickDispatchMethodField = value;
                    this.RaisePropertyChanged("PalletPickDispatchMethod");
                }
            }
        }

        [DataMember]
        public string PiecePickDispatchMethod
        {
            get
            {
                return this.PiecePickDispatchMethodField;
            }
            set
            {
                if (!object.ReferenceEquals(this.PiecePickDispatchMethodField, value))
                {
                    this.PiecePickDispatchMethodField = value;
                    this.RaisePropertyChanged("PiecePickDispatchMethod");
                }
            }
        }

        [DataMember]
        public int RowID
        {
            get
            {
                return this.RowIDField;
            }
            set
            {
                if (!this.RowIDField.Equals(value))
                {
                    this.RowIDField = value;
                    this.RaisePropertyChanged("RowID");
                }
            }
        }

        [DataMember]
        public string Status
        {
            get
            {
                return this.StatusField;
            }
            set
            {
                if (!object.ReferenceEquals(this.StatusField, value))
                {
                    this.StatusField = value;
                    this.RaisePropertyChanged("Status");
                }
            }
        }

        [DataMember]
        public string StatusD
        {
            get
            {
                return this.StatusDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.StatusDField, value))
                {
                    this.StatusDField = value;
                    this.RaisePropertyChanged("StatusD");
                }
            }
        }

        [DataMember]
        public byte[] Ts
        {
            get
            {
                return this.TsField;
            }
            set
            {
                if (!object.ReferenceEquals(this.TsField, value))
                {
                    this.TsField = value;
                    this.RaisePropertyChanged("Ts");
                }
            }
        }

        [DataMember]
        public string UpdatedBy
        {
            get
            {
                return this.UpdatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.UpdatedByField, value))
                {
                    this.UpdatedByField = value;
                    this.RaisePropertyChanged("UpdatedBy");
                }
            }
        }

        [DataMember]
        public DateTime UpdatedDate
        {
            get
            {
                return this.UpdatedDateField;
            }
            set
            {
                if (!this.UpdatedDateField.Equals(value))
                {
                    this.UpdatedDateField = value;
                    this.RaisePropertyChanged("UpdatedDate");
                }
            }
        }

        [DataMember]
        public List<WMS6.Web.OutboundServiceRef.WaveDetailInfo> WaveDetailInfo
        {
            get
            {
                return this.WaveDetailInfoField;
            }
            set
            {
                if (!object.ReferenceEquals(this.WaveDetailInfoField, value))
                {
                    this.WaveDetailInfoField = value;
                    this.RaisePropertyChanged("WaveDetailInfo");
                }
            }
        }

        [DataMember]
        public string WaveID
        {
            get
            {
                return this.WaveIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.WaveIDField, value))
                {
                    this.WaveIDField = value;
                    this.RaisePropertyChanged("WaveID");
                }
            }
        }

        [DataMember]
        public string WaveType
        {
            get
            {
                return this.WaveTypeField;
            }
            set
            {
                if (!object.ReferenceEquals(this.WaveTypeField, value))
                {
                    this.WaveTypeField = value;
                    this.RaisePropertyChanged("WaveType");
                }
            }
        }

        [DataMember]
        public string WhID
        {
            get
            {
                return this.WhIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.WhIDField, value))
                {
                    this.WhIDField = value;
                    this.RaisePropertyChanged("WhID");
                }
            }
        }
    }
}

